class Result {
    static success(data) {
        return {
            code: 200,
            message: 'success',
            data
        };
    }

    static error(message = 'error') {
        return {
            code: 500,
            message
        };
    }
}

module.exports = Result;